FROM 253178379465.dkr.ecr.us-west-2.amazonaws.com/docker/node:18
RUN useradd -ms /bin/bash appuser
WORKDIR /app/demo
COPY . /app
RUN npm i --omit=dev --ignore-scripts
RUN npm install pm2 -g
CMD ["pm2-runtime", "ecosystem.config.js"]